﻿<nav class="breadcrumb" id="pathContainer">
    <i class="Hui-iconfont Hui-iconfont-weizhi"></i>
    <span>您的位置：</span>
    <span class="c-primary">MCGT</span>
</nav>
<div class="Hui-article mt-10" id="userManage">
	<form id="subForm">
	    <div class="table-maxHeight" style="height:auto">
			<table class="table table-border page table-bordered table-hover bt-none">
				<tbody class="row cl" id="ColumnTableData">
	                <tr>
	                    <td class="col-2 text-r table-bgc-f5">项目路径 ：</td>
	                    <td class="col-10">
	                        <input type="text" class="input-text input-col-3 mccms mccms-validate-required" id="projectRootPathInput" name="projectRootPath" placeholder="项目路径，如：D:\messcat\workspace\mccms-web">
	                    </td>
	                </tr>
	                <tr>
	                    <td class="col-2 text-r table-bgc-f5">功能名 ：</td>
	                    <td class="col-10">
	                        <input type="text" class="input-text input-col-3 mccms-validate-required" id="mcgtFieldNameDesc" name="moduleName" placeholder="驼峰命名法，如:userManagerment">
	                    </td>
	                </tr>
	                <tr>
	                    <td class="col-2 text-r table-bgc-f5">显示名称 ：</td>
	                    <td class="col-10">
	                        <input type="text" class="input-text input-col-3 mccms-validate-required" id="mcgtFieldName" name="moduleNameDesc" placeholder="显示名称，如：用户管理">
	                    </td>
	                </tr>
	                <tr>
	                    <td class="col-2 text-r table-bgc-f5">表名 ：</td>
	                    <td class="col-10">
	                        <input type="text" class="input-text input-col-3 mccms-validate-required mccms-validate-maxlength?30" id="mcgtTableName" name="name" placeholder="建议大写，单词采用单数，单词间不使用连接符，如：USERINFO"></td>
	                </tr>
	                <tr>
	                    <td class="col-2 text-r table-bgc-f5">表名描述 ：</td>
	                    <td class="col-10">
	                        <input type="text" class="input-text input-col-3 mccms-validate-required" id="mcgtTableNameDesc" name="comment" placeholder="表名描述，如：用户表">
	                    </td>
	                </tr>
	                <tr id="fieldTr">
	                    <td class="col-2 text-r table-bgc-f5 va-t">字段 ：</td>
	                    <td class="col-10 addfield">
		                    <!-- <p>
		                        <input type="text" class="input-text input-col-3 mb-10 bgTextColoe" data-toggle="modal" placeholder="添加字段" readonly="readonly" href="#myModal">
                            </p> -->
	                        <span class="c-primary upload-url" data-toggle="modal" href="#myModal" id="addfield">添加字段</span>
	                    </td>
	                </tr>
	                <tr>
	                    <td class="col-2 table-bgc-f5"></td>
	                    <td class="text-l col-10">
		                    <input class="btn btn-primary radius" type="button" value="提交" id="mcgtSubmitBtn" >
	                    </td>
	                </tr>
	            </tbody>
			</table>
	    </div>
    </form>
</div>

<div id="myModal" class="modal hide fade field" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<form id="fieldForm">
		<div class="modal-header">
				<h3 id="myModalLabel" class="h3">添加字段</h3>
				<a class="close" data-dismiss="modal" aria-hidden="true" href="javascript:void();">×</a>
		</div>
		<div class="modal-body">
			<table class="modal-mcgt">
				<tr>
					<td class="col-3 text-r table-bgc-f5">字段名称 ：</td>
					<td class="col-9">
						<input type="text" class="input-text input-col-6 field-value-input mccms-validate-required" id="field-name" name="moduleName" placeholder="驼峰命名法，如：userName">
					</td>
				</tr>
				<tr>
					<td class="col-3 text-r table-bgc-f5">字段类型 ：</td>
					<td class="col-9">
						<select class="select input-text input-col-6 field-value-input" size="1" id="field-type">
							<option value="int" selected="selected">int</option>
							<option value="varchar">varchar</option>
							<option value="datetime">datetime</option>
							<option value="float">float</option>
							<option value="double">double</option>
							<option value="longtext">longtext</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="col-3 text-r table-bgc-f5">字段长度 ：</td>
					<td class="col-9">
						<input type="text" class="input-text input-col-6 field-value-input" id="field-length" name="length" placeholder="字段长度，如：10">
					</td>
				</tr>
				<tr>
					<td class="col-3 text-r table-bgc-f5">是否非空 ：</td>
					<td class="col-9">
	                    <select class="select input-text input-col-6 field-value-input" size="1" id="field-null">
	                        <option value="false" selected="selected">否</option>
	                        <option value="true">是</option>
	                    </select>
	                </td>
				</tr>
				<tr>
					<td class="col-3 text-r table-bgc-f5">默认值 ：</td>
					<td class="col-9">
						<input type="text" class="input-text input-col-6 field-value-input" id="field-default" name="default" placeholder="默认值，如：admin">
					</td>
				</tr>
				<tr>
					<td class="col-3 text-r table-bgc-f5">字段描述 ：</td>
					<td class="col-9">
						<input type="text" class="input-text input-col-6 field-value-input mccms-validate-required" id="field-describe" name="detail" placeholder="字段描述，如：用户名">
					</td>
				</tr>
			</table>
		</div>
		<div class="modal-footer">
			<button class="btn btn-primary radius field-sub" type="button">确定</button>
			<button type="button" class="btn radius field" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>
	</form>
</div>

<script>
    new Mcgt();
</script>